package com.dianning.web.action.school;

import java.util.List;
import org.apache.commons.logging.*;

import com.dianning.service.ParameterService;
import com.dianning.web.action.BaseAction;

public class Index extends BaseAction{

	private static final Log logger = LogFactory.getLog(Index.class);
	
	private ParameterService parameterService;
	
	public ParameterService getParameterService() {
		return parameterService;
	}

	public void setParameterService(ParameterService parameterService) {
		this.parameterService = parameterService;
	}
	
	private List schoolQiuzhi;
	private List schoolShangcheng;
	

	public List getSchoolQiuzhi() {
		return schoolQiuzhi;
	}

	public void setSchoolQiuzhi(List schoolQiuzhi) {
		this.schoolQiuzhi = schoolQiuzhi;
	}

	public List getSchoolShangcheng() {
		return schoolShangcheng;
	}

	public void setSchoolShangcheng(List schoolShangcheng) {
		this.schoolShangcheng = schoolShangcheng;
	}

	public String execute() {
		this.setSchoolQiuzhi(this.getParameterService().findParameters("schoolQiuzhiType", 2, null,"orders", 0));
		this.setSchoolShangcheng(this.getParameterService().findParameters("schoolShangchengType", 2, null,"orders", 0));
		return SUCCESS;
	}
}
